package at.fhooe.im440.pandora.events;

import at.fhooe.im440.pandora.enumeration.Enumerations.GameEventEnum;

public class GameEvent extends Event {

	private String TYPE = "GameEvent";
	private GameEventEnum ge;
	
	public GameEvent(GameEventEnum g)
	{
		super();
		ge = g;
	}
	
	public GameEventEnum getGameEvent()
	{
		return ge;
	}
	
	@Override
	public String getType() {
		return TYPE;
	}

	@Override
	public void processEvent(EventListener listener) {
		if(listener instanceof GameEventListener)
		{
			((GameEventListener) listener).OnGameEvent(this);
		}
	}

}
